#FROM node:latest as builder
#WORKDIR ./
#COPY . .
#RUN npm install
#RUN npm run build
#
#FROM nginx:latest
#COPY nginx.conf /etc/nginx
#COPY --from=builder /app/dist  /usr/share/nginx/html


FROM node:14.21.3

WORKDIR ./

ADD . .

EXPOSE 8080

RUN npm config set registry https://registry.npm.taobao.org \
    && npm install

CMD ["npm", "run", "serve"]

# docker build -t tpbyldt .
# docker run -d -p 1652:1650 -v /root/python_item/log/:/dlog/ --name tpbyldt tpbyldt



